<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>筛选数组元素</title>
		<script>
			var arr = [8,50,48,1,81,35,23,5,6,9];
			var newArr = [];
			var j = 0;
			for (var i = 0; i < arr.length; i++) {
			  if (arr[i] >= 10) {
			   newArr.push(arr[i]);
			  }
			}
			console.log(newArr);       
		
		</script>
	</head>
	<body>
	</body>
</html>
